$.http = ({ method = "GET", url, data = null }) => {
	return new Promise((resolve, reject) => {
		$.ajax({
			// method: method
			method,
			url,
			data,
			success(res) {
				resolve(res)
			},
			error(err) {
				reject(err)
			}
		})
	})
}


